package net.xinqushi.pthread.pthread.group;

public class ThreadGroupTest {

    public static void main(String[] args) {
        ThreadGroup mainGroup = Thread.currentThread().getThreadGroup();
        for(;mainGroup != null ; mainGroup = mainGroup.getParent()){
            System.out.println(mainGroup.getName() + mainGroup.activeCount());
            System.out.println(mainGroup.activeGroupCount());
            mainGroup.list();
        }
    }
}
